-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OTA-R] Fix retries on Query Image failure due to invalid session #18765
Merged
carol-apple
merged 9 commits into
project-chip:master
from
isiu-apple:issue_kInvalidSession
May 26, 2022
Merged
[OTA-R] Fix retries on Query Image failure due to invalid session #18765
carol-apple
merged 9 commits into
project-chip:master
from
isiu-apple:issue_kInvalidSession
May 26, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Requestor does one successful QueryImage (CASE established) * Provider killed * Provider relaunched * Requestor tries QueryImage again and gets the timeout error -> requestor invalidates the CASE -> requestor tries queryImage again and this time succeeds
- Remove debug messages
- scripts/helpers/restyle-diff.sh
pullapprove
bot
requested review from
anush-apple,
arkq,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
erjiaqing,
franck-apple,
gjc13,
harimau-qirex,
hawk248,
harsha-rajendran,
jelderton,
jepenven-silabs,
jmartinez-silabs,
jtung-apple,
kpschoedel,
lazarkov,
LuDuda and
mrjerryjohns
May 24, 2022 17:21
isiu-apple
changed the title
Issue k invalid session
[OTA-R] Fix retries on DefaultOTARequestor::OnQueryImageFailure() due to IdleStateReason::kInvalidSession
May 24, 2022
isiu-apple
changed the title
[OTA-R] Fix retries on DefaultOTARequestor::OnQueryImageFailure() due to IdleStateReason::kInvalidSession
[OTA-R] Fix retries on Query Image failure due to invalid session
May 24, 2022
PR #18765: Size comparison from b4586be to a47b62b Increases (11 builds for cc13x2_26x2, cyw30739, efr32, nrfconnect)
Decreases (3 builds for cc13x2_26x2)
Full report (27 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
andy31415
reviewed
May 24, 2022
andy31415
reviewed
May 24, 2022
PR #18765: Size comparison from b4586be to baeceb0 Increases above 0.2%:
Increases (12 builds for cc13x2_26x2, cyw30739, efr32, linux, nrfconnect)
Decreases (11 builds for cc13x2_26x2, cyw30739, efr32, nrfconnect)
Full report (27 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
carol-apple
reviewed
May 24, 2022
carol-apple
reviewed
May 24, 2022
carol-apple
reviewed
May 24, 2022
- Set kMaxInvalidSessionRetries to 1 - Remove mInvalidSessionRetryCount and use mProviderRetryCount instead
- Consolidate the code for updating mCurrentUpdateState.
carol-apple
reviewed
May 25, 2022
carol-apple
reviewed
May 25, 2022
- Update comments.
carol-apple
approved these changes
May 26, 2022
mrjerryjohns
approved these changes
May 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
When tester starts OTA-P with one set of arguments, initiates QueryImage, then kills and restarts OTA-P with a different set of arguments, the first QueryImage will fail due to invalid CASE session but the second QueryImage succeeds. For easier testing, the first QueryImage should also succeed after OTA-P is restarted.
Example sequence:
Change overview
DefaultOTARequestor::RecordNewUpdateState()
, update new state before handling state transition.DefaultOTARequestorDriver::HandleIdleStateEnter()
, add QueryImage retry cap.Testing